<style>
/* 重写样式 */
.fui-header.block {
    display: block;
}

.fui-tab {
    margin: 0;
}

.fui-tab a {
    height: 2.2rem;
    line-height: 2.2rem;
}

.fui-tab:after {
    display: none;
}
.nickname {
    color: #50b6fe;
}
    .shop-index-page .menu {height: auto; background: #fff;}
    .shop-index-page .menu .item {height: auto; width: 1%; padding: 0.5rem 0; margin: 0; font-size: 0.7rem; color: #636363; text-align: center; display: table-cell;position: relative;}
    .shop-index-page .menu .item:after  {font-size: 0.7rem;position: absolute;content: '';left:-1px;top:0.5rem;bottom:0.5rem;border-left:1px solid #d9d9d9;}
    .content-empty{padding:1rem 0;margin:0;}
source{
    min-width: 100%;
    min-height: 100%;
    height: auto;
    width: auto;
}
</style>
<div ng-if="pagedata.op=='main'" class="fui-page shop-index-page" style="display:block;">
    <div class="fui-content" style="padding-bottom:4rem">
		<div class="fui-tab-scroll" style="background:#fff">
				<div ng-class="{'item':1,'on':pagedata.showtype!=1}" style="height:2rem;line-height:1.5rem">
					<a href="javascript:;" ng-click="pagedata.showtype=0;pagedata.getlist(0)">课程</a>
				</div>
				<div ng-class="{'item':1,'on':pagedata.showtype==1}" style="height:2rem;line-height:1.5rem">
					<a href="javascript:;" ng-click="pagedata.showtype=1;pagedata.getlist(1)">课程互动</a>
				</div>
		</div>
		<div style="padding:0.5rem 0">
		<div ng-if="pagedata.showtype!=1" ng-include="sys_html('_videolist')"></div>
		<div ng-if="pagedata.showtype==1" ng-include="sys_html('_msglist')" style="padding:0 0.5rem"></div>
		</div>
		<div class="c" style="margin-top:2rem">
			<a href="javascript:;" ng-click="access_json('jy_xiaoeknow/index/');" class='btn btn-sm btn-danger-o external'style="border-radius: 100px;width:  7rem;font-size: .75rem">去逛逛</a>
		</div>
		<div ng-include="sys_html('_copyright')"></div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.pagedata.setshowewm=function(item){
	scope.post_json('/index/looklog/id='+item.id,{},function(res){
		if(res=='success'){
			
		}
	});
}
scope.pagedata.getlist=function(showtype){
	var listurl='jy_xiaoeknow/mybuy/getlist/';
	if(showtype==1){
		listurl='jy_xiaoeknow/mybuy/getmsg/';
	}
	scope.tool.get_list(listurl,true);
}
scope.pagedata.getlist();
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list(listurl);
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>